<div id="main_content">
	<div class="title_action">
		<span class="title">Projekte &Uuml;bersicht </span>
		<div class="action_box">
			<div class="action_img">
				<ul>
					<li><a href="projects.php?action=new" class="action_add"> Neues Projekt</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="clearer">&nbsp;</div><br />
	<div class="pagina">{@pp:pagina}<div class="claerer">&nbsp;</div></div>
	<div class="clearer">&nbsp;</div><br />
	<pp:dynamic name="projects">
	<div class="project_block block_border" id="project_{@pp:id}">
		<img src="http://chart.apis.google.com/chart?chf=bg,s,FFFFFF00&chs=90x90&amp;cht=p&amp;chco=77AB5D|E8BA2F|b55252|568bbc|bbbbbb&amp;chd=t:{@pp:todo_finished},{@pp:todo_on_schedule},{@pp:todo_behind_schedule},{@pp:todo_waiting},{@pp:todo_new}&amp;chp=0&amp;chma=0|0&amp;chof=png" />
		<div class="content">
			<div style="float: right;">
				<div class="title_action" style="display: none;" id="project_block_action_{@pp:id}">
					<div class="action_box">
						<div class="action_img" >
							<ul style="margin-left: -120px !important;">
								<li><a href="projects.php?id={@pp:id}" class="action_view">Anzeigen</a></li>
								<pp:dynamic name="authorized">
								<li><a href="projects.php?id={@pp:id}&amp;action=edit" class="action_edit">Bearbeiten</a></li>
								<li><a href="projects.php?id={@pp:id}&amp;action=delete" class="action_delete">L&ouml;schen</a></li>
								<li><a href="projects.php?pId={@pp:id}&amp;action=unshare" class="action_unshare">Einziehen</a></li>
								<li class="sep">&nbsp;</li>
								<li><a href="todos.php?pId={@pp:id}&amp;action=new" class="action_add">Todo erstellen</a></li>
								</pp:dynamic>
							</ul>
						</div>
					</div>
				</div>
			</div>
	         <span class="title"><a href="projects.php?id={@pp:id}">{@pp:title}</a></span>
	         <span class="desc">
	         	{@pp:text}
	         	<br /><br />
	             Letztes Todo zu erledigen bis {@pp:last_todo_date}<br />
	             {@pp:todo_count} Todos erstellt<br />
	         </span>
	    </div>
		<div class="legend" id="legend_{@pp:id}">
			<ul>
				<li><span class="todo_finished">&nbsp;</span> fertig ({@pp:todo_finished})</li>
				<li><span class="todo_on_schedule">&nbsp;</span> im Zeitplan ({@pp:todo_on_schedule})</li>
				<li><span class="todo_behind_schedule">&nbsp;</span>  hinter Zeitplan ({@pp:todo_behind_schedule})</li>
				<li><span class="todo_waiting">&nbsp;</span> warte ({@pp:todo_waiting})</li>
				<li><span class="todo_new">&nbsp;</span> neu ({@pp:todo_new}) </li>				
			</ul>
		</div>
		<script type="text/javascript">
		<!--
			$('#project_{@pp:id}').hover(function() {$('#legend_{@pp:id}').attr('style', 'opacity: 1 !important;');});
			$('#project_{@pp:id}').hover(function() {$('#project_block_action_{@pp:id}').show();});
			$('#project_{@pp:id}').mouseleave(function() {$('#legend_{@pp:id}').attr('style', 'opacity: .2 !important;');});
			$('#project_{@pp:id}').mouseleave(function() {$('#project_block_action_{@pp:id}').hide();});
		//-->
		</script>
	</div>
	</pp:dynamic>
	<div class="clearer">&nbsp;</div>
	<div class="pagina">{@pp:pagina}<div class="claerer">&nbsp;</div></div>
	
</div>